package com.zengqingfa.demo.service.impl;

import com.zengqingfa.demo.entity.SysUser;
import com.zengqingfa.demo.mapper.SysUserMapper;
import com.zengqingfa.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zengqingfa
 * @date 2019/10/14 14:23
 * @description
 * @email zengqingfa_java@163.com
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public SysUser getById(Long id) {
        return sysUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<SysUser> findAll() {
        return sysUserMapper.findAll();
    }
}
